from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `room_players` MODIFY COLUMN `seat_index` INT COMMENT '座位索引';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `room_players` MODIFY COLUMN `seat_index` INT NOT NULL COMMENT '座位索引';"""
